package blocks
{
	import blocks.DynamicBlock;
	import org.flixel.FlxGroup;
	
	public class Door extends DynamicBlock {
		
		public function Door(X:int, Y:int, infos:Object, mapName:String) {
			super(X, Y, infos, mapName);
			
			_triggerName = infos.triggerName;
		}
		
		
		/**
		 * 
		 * Called on the function is triggered
		 * 
		 * @return	nothing
		 * 
		 * */
		override public function activate():void{
			super.activate();
			this.switchTile();
		}
	}
}